package com.wd.mainmodel;

import android.os.Bundle;

import androidx.fragment.app.FragmentActivity;

import com.wd.annotation.Route;
import com.wd.base.config.Constance;
import com.wd.mainmodel.fragment.MainFragment;

/**
 * main
 *
 * @author pc
 */
@Route(path = Constance.MODULE_URL_MAIN)
public class MainActivity extends FragmentActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        if (savedInstanceState == null) {
            getSupportFragmentManager().beginTransaction().replace(R.id.container, MainFragment.newInstance()).commitNow();
        }

    }
}